package com.medusa.aps.business.modules.modeling.mp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.medusa.aps.business.model.pagination.Page;
import com.medusa.aps.business.modules.modeling.model.input.WorkingProcedureParam;
import com.medusa.aps.business.modules.modeling.model.output.ProcedureVO;
import com.medusa.aps.business.modules.modeling.model.output.WorkingProcedureVO;
import com.medusa.aps.business.modules.modeling.mp.entity.WorkingProcedure;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * 工序数据库访问层
 *
 * @author yuxh
 * @since 2023-08-14 17:37:53
 */
public interface WorkingProcedureMapper extends BaseMapper<WorkingProcedure> {

    /**
     * 分页查询工序列表
     *
     * @param page                  分页参数
     * @param workingProcedureParam 查询参数
     * @return 分页数据
     */
    Page<WorkingProcedureVO> selectWorkingProcedurePage(@Param("page") Page<WorkingProcedure> page, @Param("param") WorkingProcedureParam workingProcedureParam);

    /**
     * 查询工序明细
     *
     * @param id 工序id
     * @return 工序明细数据
     */
    WorkingProcedureVO detail(@Param("id") Integer id);

    List<ProcedureVO> selectWorkingProcedureBatch(@Param("workingProcedureIds") Set<Integer> workingProcedureIds);
}

